package ar.pmt.gwt.client.recurso.view.smart;

import com.smartgwt.client.widgets.grid.ListGridRecord;

import java.util.Date;
import java.util.Map;

public class CountryRecord extends ListGridRecord {

    public CountryRecord() {
    }

    public CountryRecord(String name, String description, String clase, String[] clases, Map<String, String> mapClase) {
        setName(name);
        setDescription(description);
        setClases(clases);
        setClase(clase);
        setMapClase(mapClase);
    }



    private void setMapClase(Map<String, String> mapClase) {
		setAttribute("_mapClase", mapClase);
		
	}

	private void setClase(String clase) {
		setAttribute("_clase", clase);
		
	}

	public void setClases (String[] clases){
    	setAttribute("_clases",clases);
    }
    
   
    
    public void setName(String name) {
        setAttribute("name", name);
    }

    public String getName() {
        return getAttributeAsString("name");
    }

    public void setDescription(String description) {
        setAttribute("description", description);
    }

    public String getDescription() {
        return getAttributeAsString("description");
    }

   
}
